//
//  UIButton+Chain.h
//  ditelMaintain
//
//  Created by 葛悦彣 on 2023/3/2.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (Chain)

///新建lab
+ (UIButton *(^)(UIButtonType tpye))newButton;

/// 添加文本
- (UIButton *(^)(NSString * text,UIControlState state))addText;

/// 添加默认文本
- (UIButton *(^)(NSString * text))addNormalText;

/// 添加默认颜色
- (UIButton *(^)(UIColor * color))addNormalColor;

/// 添加字号
- (UIButton *(^)(UIFont * font))addFont;

/// 添加方法
- (UIButton * _Nonnull (^)(id target,SEL sel))addTarget;

/// 添加图片
- (UIButton * _Nonnull (^)(UIImage * _Nonnull))addimg;

/// 添加背景图片
- (UIButton * _Nonnull (^)(UIImage * _Nonnull))addBackgroundimg;

/// 添加背景颜色
- (UIButton * (^)(UIColor * color))addbackgroundColor;


/// 添加圆角
- (UIButton * (^)(CGFloat Rounded))addYJ;


@end

NS_ASSUME_NONNULL_END
